/**
 * 
 */
package org.extdev.protocol.ltr;

import java.nio.DoubleBuffer;
import java.nio.IntBuffer;

import org.extdev.libraries.ltr.LTR11APILibraryFacade;
import org.extdev.protocol.Protocol;

/**
 * @author LAP
 *
 */
public class LTR11LibProtocol implements Protocol<IntBuffer, DoubleBuffer> {
	
	private LTR11APILibraryFacade facade;
	
	public LTR11LibProtocol(LTR11APILibraryFacade facade) {
		this.facade = facade;
	}
	
	@Override
	public DoubleBuffer rewriteData(IntBuffer data) throws Exception {
		return facade.processData(data, true, true);
	}

}
